package pl.wroc.pwr.docs.repos.webapp.web;

public class Message {
	public enum STATUS {SUCCESS, INFO, ERROR};
	public enum TYPE { PERSISTENT, FLASH };
	private STATUS status;
	private String text;
	private TYPE type;
	
	Message(STATUS status, String text){
		this.status = status;
		this.text = text;
		this.type = TYPE.FLASH;
	}
	
	Message(STATUS status, String text, TYPE type){
		this.status = status;
		this.text = text;
		this.type = type;
	}

	public STATUS getStatus() {
		return status;
	}

	public String getText() {
		return text;
	}
	
	public TYPE getType() {
		return type;
	}
}